<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="box"></div>

    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
    <script>
        const box = document.getElementById("box")
        axios.get("http://localhost:7001/getData").then(res => {
            res.data.file.forEach(item => {
                const oDiv = document.createElement("div")
                oDiv.innerHTML = item.title
                box.appendChild(oDiv)
            })
        })
    </script>
</body>
</html>